//
//  SEHospitalizeOrderPatientCell.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/4/17.
//

import UIKit

class SEHospitalizeOrderPatientCell: UITableViewCell {

    static let className = "SEHospitalizeOrderPatientCell"
    static let reuseId = className

    @IBOutlet weak var stackBgView: UIView! {
        didSet{
            stackBgView.layer.cornerRadius = 4
            stackBgView.layer.borderWidth = 1
            stackBgView.layer.borderColor = Asset.main.color.withAlphaComponent(0.15).cgColor
            stackBgView.layer.masksToBounds = true
        }
    }


    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var sexLabel: UILabel!
    @IBOutlet weak var ageLabel: UILabel!


    func updateCell(_ hospitalizeVm: SEHospitalizeOrderDetailViewModel) {
        nameLabel.text = hospitalizeVm.patientNameDescribe
        sexLabel.text = hospitalizeVm.patientSexDescribe
        ageLabel.text = hospitalizeVm.patientAgeDescribe
    }

    func updateCell(_ prescriptionVm: SEPrescriptionOrderDetailViewModel) {
        nameLabel.text = prescriptionVm.patientNameDescribe
        sexLabel.text = prescriptionVm.patientSexDescribe
        ageLabel.text = prescriptionVm.patientAgeDescribe
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
